# Additional definitions to use the cross-compile toolchain

CROSS_COMPILE = "${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}"
SYSROOT_DIR = "${STAGING_DIR_TARGET}"

EXTRA_OECMAKE:append = " \
    -DCROSS_COMPILE=${CROSS_COMPILE} \
    -DSYSROOT_DIR=${SYSROOT_DIR} \
    -DTOOLCHAIN_HAS_NEWLIB=ON \
    "

OE_TERMINAL_EXPORTS += "CROSS_COMPILE"
OE_TERMINAL_EXPORTS += "SYSROOT_DIR"
